home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / g_man / cat3 / OpenGL-ftn / fglubeginsurface.z / fglubeginsurface
Encoding:
Text File  |  2002-10-03  |  4.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ffffgggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee((((3333GGGG))))           OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee           ffffgggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ffffgggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee,,,, ffffgggglllluuuuEEEEnnnnddddSSSSuuuurrrrffffaaaacccceeee - delimit a NURBS surface definition
  10.  
  11.  
  12. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      SUBROUTINE ffffgggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee( CHARACTER*8 _n_u_r_b )
  14.  
  15.      SUBROUTINE ffffgggglllluuuuEEEEnnnnddddSSSSuuuurrrrffffaaaacccceeee( CHARACTER*8 _n_u_r_b )
  16.  
  17.  
  18. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  19.      _n_u_r_b  Specifies the NURBS object (created with ffffgggglllluuuuNNNNeeeewwwwNNNNuuuurrrrbbbbssssRRRReeeennnnddddeeeerrrreeeerrrr).
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      Use ffffgggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee to mark the beginning of a NURBS surface definition.
  23.      After calling ffffgggglllluuuuBBBBeeeeggggiiiinnnnSSSSuuuurrrrffffaaaacccceeee, make one or more calls to
  24.      ffffgggglllluuuuNNNNuuuurrrrbbbbssssSSSSuuuurrrrffffaaaacccceeee to define the attributes of the surface.  Exactly one of
  25.      these calls to ffffgggglllluuuuNNNNuuuurrrrbbbbssssSSSSuuuurrrrffffaaaacccceeee must have a surface type of
  26.      GGGGLLLL____MMMMAAAAPPPP2222____VVVVEEEERRRRTTTTEEEEXXXX____3333 or GGGGLLLL____MMMMAAAAPPPP2222____VVVVEEEERRRRTTTTEEEEXXXX____4444.  To mark the end of the NURBS
  27.      surface definition, call ffffgggglllluuuuEEEEnnnnddddSSSSuuuurrrrffffaaaacccceeee.
  28.  
  29.      Trimming of NURBS surfaces is supported with ffffgggglllluuuuBBBBeeeeggggiiiinnnnTTTTrrrriiiimmmm, ffffgggglllluuuuPPPPwwwwllllCCCCuuuurrrrvvvveeee,
  30.      ffffgggglllluuuuNNNNuuuurrrrbbbbssssCCCCuuuurrrrvvvveeee, and ffffgggglllluuuuEEEEnnnnddddTTTTrrrriiiimmmm. See the ffffgggglllluuuuBBBBeeeeggggiiiinnnnTTTTrrrriiiimmmm reference page for
  31.      details.
  32.  
  33.      GL evaluators are used to render the NURBS surface as a set of polygons.
  34.      Evaluator state is preserved during rendering with
  35.      ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb(GGGGLLLL____EEEEVVVVAAAALLLL____BBBBIIIITTTT) and ggggllllPPPPooooppppAAAAttttttttrrrriiiibbbb(). See the ggggllllPPPPuuuusssshhhhAAAAttttttttrrrriiiibbbb
  36.      reference page for details on exactly what state these calls preserve.
  37.  
  38. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  39.      The following commands render a textured NURBS surface with normals; the
  40.      texture coordinates and normals are also described as NURBS surfaces:
  41.  
  42.  
  43.           gluBeginSurface(nobj);
  44.              gluNurbsSurface(nobj, ..., GL_MAP2_TEXTURE_COORD_2);
  45.              gluNurbsSurface(nobj, ..., GL_MAP2_NORMAL);
  46.              gluNurbsSurface(nobj, ..., GL_MAP2_VERTEX_4);
  47.           gluEndSurface(nobj);
  48.  
  49.  
  50.  
  51. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  52.      ffffgggglllluuuuBBBBeeeeggggiiiinnnnCCCCuuuurrrrvvvveeee, ffffgggglllluuuuBBBBeeeeggggiiiinnnnTTTTrrrriiiimmmm, ffffgggglllluuuuNNNNeeeewwwwNNNNuuuurrrrbbbbssssRRRReeeennnnddddeeeerrrreeeerrrr, ffffgggglllluuuuNNNNuuuurrrrbbbbssssCCCCuuuurrrrvvvveeee,
  53.      ffffgggglllluuuuNNNNuuuurrrrbbbbssssSSSSuuuurrrrffffaaaacccceeee, ffffgggglllluuuuPPPPwwwwllllCCCCuuuurrrrvvvveeee
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.